﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MastePage/SubEmptyMaster.Master" AutoEventWireup="true" CodeBehind="KnifeView.aspx.cs" Inherits="BySoft.Web.Site.MasteData.KnifeView" %>

<%@ MasterType VirtualPath="~/MastePage/SubEmptyMaster.master" %>
<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="cphHeadContent" runat="server" ContentPlaceHolderID="HeadPlace">
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs({ show: function (event, ui) { iframeAutoFit(); } });
        })
        function Refreashtab() {
            $("#tabs").tabs({ show: function (event, ui) { iframeAutoFit(); } });
        }

    </script>
</asp:Content>
<asp:Content ID="cphContent" runat="server" ContentPlaceHolderID="EmptyMasteCPH">
    <h1 class="tit">基础资料 >> <a href="KnifeList.aspx">刀具资料>></a> 查看</h1>
    <br />
    <div class="tableStyle2">
        <table border="0" cellspacing="0" cellpadding="0" style="text-align: left; width: 100%"
            id="tBase" runat="server">
            <tr>
                <th class="left2">刀具类型：
                </th>
                <td class="right2">
                    <asp:DropDownList ID="ddlKnifeType" runat="server" Enabled="false" Width="90%"></asp:DropDownList>
                </td>
                <th class="left2">刀具编号：
                </th>
                <td class="right2">
                    <asp:Label CssClass="lblreadonly" ID="lblKnifeID" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th class="left2">生产厂商：</th>
                <td class="right2">

                      <asp:Label CssClass="fullWidth" ID="lblFactory" runat="server"></asp:Label>
                </td>
                <th class="left2">所属客户：
                </th>
                <td class="right2">
                    <asp:Label CssClass="fullWidth" ID="lblBelongCustomer" runat="server"></asp:Label>

                </td>

            </tr>
            <tr>
                <th class="left2">刀具名称：
                </th>
                <td class="right2">
                    <asp:Label CssClass="fullWidth" ID="lblKnifeName" runat="server"></asp:Label>
                </td>
                <th class="left2">规格：
                </th>
                <td class="right2">
                    <asp:Label ID="lblSpecifications" CssClass="fullWidth" runat="server"></asp:Label>
                </td>
            </tr>

         
            <tr>
                <th class="left2">单位：</th>
                <td class="right2">
                    <asp:Label CssClass="fullWidth" ID="lblUnit" runat="server"></asp:Label></td>
                <th class="left2">安全库存量：</th>
                <td class="right2">
                    <asp:Label CssClass="fullWidth" ID="lblSafeStock" runat="server" ></asp:Label></td>
            </tr>


            <tr>
                <th class="left2">刀具状态：</th>
                <td class="right2">
                    <asp:DropDownList ID="ddlKnifeStatus" runat="server" Enabled="false"></asp:DropDownList>

                </td>
                <th class="left2"></th>
                <td class="right2"></td>

            </tr>
        </table>
    </div>
    <div class="tableStyle">
      <div id="tabs">
            <ul>
                <li><a href="#tabs-1">图纸附件</a></li>
               
            </ul>
            <div id="tabs-1" class="tableStyle" style="padding-bottom: 10px;">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>





                        <div>
                            <asp:SGridView runat="server" ID="grdResultMap" Width="100%" ShowActionToolBar="false"
                                AutoGenerateColumns="false" AllowCascade="false" OnRowDataBound="grdResult_RowDataBound" OnRowCommand="grdResultMap_RowCommand">
                                <Columns>
                                    <asp:TemplateField HeaderText="AttachmentID" ItemStyle-CssClass="Hidden" FooterStyle-CssClass="Hidden" HeaderStyle-CssClass="Hidden">
                                        <ItemTemplate>
                                            <asp:Label ID="lblAttachmentID" Text='<%#Eval("AttachmentID") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="序号">
                                        <ItemTemplate>
                                            <%# Container.DisplayIndex+1 %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="上传日期">
                                        <ItemTemplate>
                                            <asp:Label ID="lblUpDateTime" Text='<%#Eval("UpDateTime") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="文件名">
                                        <ItemTemplate>
                                            <a href='<%#Eval("OpenURL") %>' target="_blank">
                                                <asp:Label ID="lblFileName" Text='<%#Eval("FileName") %>' runat="server" ToolTip="点击查看文件"></asp:Label>
                                            </a>
                                        </ItemTemplate>
                                    </asp:TemplateField>



                                   

                                </Columns>
                            </asp:SGridView>



                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
          
        </div>
    </div>
    <div class="controlBar" align="center">
        <table cellpadding="0" cellspacing="0" style="width: 300px; margin: 0 auto;">
            <tr>
                <td colspan="4">
                    <label class="btnStylec png_bg">
                        <input type="button" id="Button2" value="返回" runat="server" onclick="window.location = 'KnifeList.aspx'"
                            class="png_bg" />
                    </label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>


